package com.beamfield.dao.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.beamfield.model.FileClassify;
import com.beamfield.modelVo.DocumentVo;

@Component
public interface FileClassifyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FileClassify record);

    int insertSelective(FileClassify record);

    FileClassify selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FileClassify record);

    int updateByPrimaryKey(FileClassify record);

    List<DocumentVo> selectPage(@Param("offset") String offset,@Param("limit") String limit,@Param("beamId") Long beamId,@Param("type") String type,@Param("queryName") String queryName, @Param("years")String years);

    long countPage(@Param("beamId") Long beamId,@Param("type") String type,@Param("queryName") String queryName, @Param("years")String years);

    List<DocumentVo> selectByIdList(@Param("pageIdList") List<Long> pageIdList);

    List<DocumentVo> selectPageNoType(@Param("offset") String offset, @Param("limit") String limit, @Param("beamId") Long beamId, @Param("id") String id);

    Long countPageNoType(@Param("beamId") Long beamId, @Param("id") String id);
}